package com.yanxu.oauth2.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @author 折戟沉沙铁未销
 * @version V1.0
 * @date 2025-09-25-2025
 * @Description: 启动类
 */
@SpringBootApplication
@MapperScan("com.yanxu.oauth2.server.mapper")
@EnableEurekaClient
public class Oauth2ServerApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(Oauth2ServerApplication.class, args);
        UserDetailsService bean = applicationContext.getBean(UserDetailsService.class);
        System.out.println(bean);
    }
}